package com.ztgf.order.models.vo.purchase;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 采购信息表VO
 *
 * @author mxli
 * @Date 2021-05-17 10:15:52
 */
@Data
public class PurchaseInfoVO implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "店铺id")
    private Long shopId;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "发布类型 0个人、1admin")
    private Integer publishType;
    @ApiModelProperty(value = "过期时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")//gosn
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//fastjson
    private Date expiredTime;
    @ApiModelProperty(value = "是否删除 0未删除、1删除")
    private Integer delFlag;
    @ApiModelProperty(value = "是否同意平台修改 0不同意、1同意")
    private Integer acceptEditStatus;
    @ApiModelProperty(value = "报价状态：0报价中、1报价结束、2取消报价、3流标")
    private Integer bargainStatus;
    @ApiModelProperty(value = "取消按钮显示状态：0取消、1结束")
    private Integer cancelButtonStatus;
    @ApiModelProperty(value = "查看时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")//gosn
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//fastjson
    private Date lookTime;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")//gosn
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//fastjson
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")//gosn
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//fastjson
    private Date updateTime;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")//gosn
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//fastjson
    private Date endTime;

    @ApiModelProperty(value = "取消类型、参考数据字典")
    private Integer cancelType;
    @ApiModelProperty(value = "取消说明")
    private String cancelDescription;

    @ApiModelProperty(value = "主办人id")
    private Long organiserUserId;
    @ApiModelProperty(value = "主办人名称")
    private String organiserUserName;
    @ApiModelProperty(value = "主办人修改状态：0未修改、1已修改")
    private Integer organiserUpdateStatus;

    @ApiModelProperty(value = "发布的公司名称")
    private String shopName;

    @ApiModelProperty(value = "是否可报价：0不可报价、1可报价")
    private Integer quotableStatus;

    @ApiModelProperty(value = "店铺状态：0买家、1卖家")
    private Integer shopType;

    @ApiModelProperty(value = "商品列表")
    List<PurchaseCommodityVO> commodityVOList;

    @ApiModelProperty(value = "创建名字")
    private String createUserName;
    @ApiModelProperty(value = "更新人名字")
    private String updateUserName;

    @ApiModelProperty(value = "申请平台砍价服务费金额")
    private BigDecimal purchaseFeeMoney;
    @ApiModelProperty(value = "平台砍价支付状态：0未支付，1支付中、2支付成功、3支付失败")
    private Integer purchaseFeeMoneyStatus;
    @ApiModelProperty(value = "同步平台砍价技术服务费状态：0未同步，1已同步")
    private Integer synchronizationShopSysInvoiceType;
    @ApiModelProperty(value = "pdf路径")
    private String pdfUrl;

    @ApiModelProperty(value = "是否excel导入")
    private Integer isExcel;
}
